{{ partial "header.html" . }}
<h1>{{ .Title }}</h1>

{{ $targetversion := .Params.Targetversion }}
{{ $baseversion := .Params.Baseversion }}

{{ with (index (index (index $.Site.Data.jdk.versions $targetversion) "apidiff") $baseversion) }}

<p>
  Comparing <a href="../../../{{ .target.version }}">Java {{ .target.version }}</a> (build {{ .target.build }})
  with <a href="../../../{{ .base.version }}"> Java {{ .base.version }}</a> (build {{ .base.build }}).
</p>

<table>
  <thead>
    <tr>
      <th>Element</th>
      <th>Modification</th>
    </tr>
  </thead>
  <tbody>
  {{ range .deltas }}
    <tr>
      <td><div class="{{ .type }}" style="margin-left:{{ mul .level 18 }}px">
        {{ if eq "added" .status }}
          <a {{ printf "href=%q" .javadoc | safeHTMLAttr }}>{{ truncate 50 "..." .name }}</a>
        {{ else if eq "modified" .status }}
          <a {{ printf "href=%q" .javadoc | safeHTMLAttr }}>{{ truncate 50 "..." .name }}</a>
        {{ else if eq "removed" .status }}
          <div class="removed">{{ truncate 50 "..." .name }}</div>
        {{ else }}
          <div>{{ truncate 50 "..." .name }}</div>
        {{ end }}
      </div></td>
      <td>
        <ul class="tag">
        {{ if eq "added" .status }}
          <li class="tag newelement">added</li>
        {{ else if eq "removed" .status }}
          <li class="tag removedelement">removed</li>
        {{ end }}
        {{ range .removedTags }}
          <li class="tag removedtag"><b>-</b> {{ . }}</li>
        {{ end }}
        {{ range .addedTags }}
          <li class="tag newtag"><b>+</b> {{ . }}</li>
        {{ end }}
        </ul>
      </td>
    </tr>
  {{ end }}
  </tbody>
</table>

<div class="datasource">
  <a href="{{ $.Site.Params.Sourcebase }}data/jdk/versions/{{ $targetversion }}/apidiff/{{ $baseversion }}.json">Data Source</a>
</div>

<p>
  This report is based on simple comparison of all <code>public</code> and
  <code>protected</code> APIs of the <code>java.*</code> and <code>javax.*</code>
  packages of JDK builds {{ .target.build }} and {{ .base.build }}. It does not make statements about
  <a href="https://wiki.openjdk.java.net/display/csr/Kinds+of+Compatibility">compatibility</a>.
</p>

<p>
  More detailed API comparisons based on the <a href="https://github.com/siom79/japicmp">japicmp</a>
  tool can be found <a href="https://github.com/AdoptOpenJDK/jdk-api-diff">here</a>.
</p>

{{ end }}
{{ partial "footer.html" . }}

